Skip to content

MINOR: Adopt some Java 17 idioms for readability - #3912

Merged
Fokko merged 3 commits into
apache:masterfrom
dossett:j17
Nov 2, 2026
Merged

Fokko merged 3 commits into
apache:masterfrom
dossett:j17

Conversation

@dossett

@dossett dossett commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

These are non-functional changes

With Java 11 dropped we can adopt some nice Java 17 idioms for readability

  • use instanceof to assign values and avoid repeated casts
  • nicer switch syntax

@Fokko Fokko changed the title [minor] Adopt some Java 17 idioms for readability MINOR: Adopt some Java 17 idioms for readability Nov 1, 2026

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this:

Image

Thanks @dossett 🙌

@Fokko
Fokko merged commit 16932b3 into apache:master Nov 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants